package io.kiki.sba.registry.converter;

import io.kiki.sba.registry.core.model.Scope;


public class ScopeEnumConverter {

    /**
     * scope convert func
     *
     * @param name name
     * @return ScopeEnum
     */
    public static Scope convertToScope(String name) {
        if (Scope.contains(name)) {
            return Scope.valueOf(name);
        }
        return Scope.zone;
    }
}
